import React from 'react'
import qs from 'qs'
import { useLocation } from 'react-router-dom'
export default function News() {
    const location = useLocation()
    const { name, id } = qs.parse(location.search.split('?')[1])
    return (
        <div>
            <h3>News</h3>
            <p> 用户名：{name} 用户编号：{id}</p>
        </div>
    )
}
